package cn.liyicun.cp.cpweb.error;

public class WorkRunTimeException extends RuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int code = 500;
	private String message;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public WorkRunTimeException(String msg) {
		this(404, msg);
	}

	public WorkRunTimeException(int code, String msg) {
		super(msg);
		this.code = code;
		this.message = msg;
	}
}
